body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;

  min-height: 20vh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  /* overflow-x: hidden; */
}
main {
  flex: 1;
}

h1 {
  margin-top: 15px;
  font-size: 200px;
  /* font-size: clamp(60px, 10vw, 200px); */
  margin-bottom: 0;
  padding-bottom: 0;
}

#motto {
  font-size: 30px;
  font-style: italic;
  text-align: center;
  margin-top: 0;
  font-weight: bold;
  color: white;
  padding-top: 0;
  margin-bottom: 10px;
}

.shelfy-title {
  width: 100%; /* teljes képernyőszélesség */
  height: 100%;

  text-align: center;
}

.blur-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.blur-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("files/pictures/hatter3.png"); /* ide a saját képed */
  background-size: cover;
  background-position: center;
  filter: blur(5px); /* itt állítod a homályosságot */
  z-index: -1; /* háttérbe küldi */
}

h5 {
  font-size: 60px;
}

article {
  font-size: 30px;

  text-align: justify;
  width: 100%;
}

#landing-page-info1 {
  padding: 50px;
}

#landing-page-info2 {
  background-color: #333;
  color: white;
  padding: 50px;
}

#collectoin-div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* opcionális, hogy legyen tér a könyvek között */
  justify-content: center; /* szépen középre igazítja a sorokat */
  max-width: 1200px; /* opcionális, ha nem akarod, hogy túl széles legyen */
}

.free-collection-div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* opcionális, hogy legyen tér a könyvek között */
  justify-content: left; /* szépen középre igazítja a sorokat */
  /* width: 100%; */
  /* max-width: 1200px; opcionális, ha nem akarod, hogy túl széles legyen */
}

.cover-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  /*border: 5px solid rgb(253, 165, 0);*/
  border-radius: 10px;
  margin: 20px;
  /* transition: all 0.3s ease; */
  margin-bottom: 0px;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

.cover-img.fade-out {
  opacity: 0;
}

.add-cover {
  width: 150px;
  height: 150px;
  padding: 50px;
}

.cover-img:hover {
  transform: scale(0.9); /* zoom */
  filter: brightness(70%); /* sötétítés */
  cursor: pointer;
}

.title {
  margin-top: 0px;
  margin-bottom: 1px;
  text-align: center;
  font-weight: bold;
}

.author {
  text-align: center;
  margin-top: 1px;
  font-size: 15px;

  font-weight: bold;
}

.title:hover,
.author:hover {
  transform: scale(0.9); /* zoom */
  filter: brightness(70%); /* sötétítés */
  cursor: pointer;
}

.book {
  margin-bottom: 25px;
}

a {
  color: inherit;
  text-decoration: none;
}

h2 {
  color: rgb(253, 165, 0);
  font-size: 50px;
  margin-top: 15px;
}

#nw-form {
  margin-top: 65px;
}

h3 {
  margin-bottom: 0px;
  font-size: 20px;
}

h3:hover {
  transform: scale(0.9); /* zoom */
  filter: brightness(70%); /* sötétítés */
  cursor: pointer;
}

p {
  margin: auto;
  padding: 5px 5px 5px 5px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #333;
  color: white;
  width: 100%;
  box-sizing: border-box;
  z-index: 2000;
  position: fixed;
  top: 0;
  height: 50px;
}

/* Bal oldal: menü + logo */
.left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Középső rész: search bar */
.center {
  flex: 1; /* kitölti a középső teret */
  display: flex;
  justify-content: center;
}

#search-book {
  width: 100%;
  max-width: 400px;
  padding: 6px 10px;
  border-radius: 15px;
}

/* Jobb oldal: login + register */
.right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-button,
.register-button,
.add-button,
.myProfile-button {
  height: 35px;
  line-height: 30px;
  width: 200px;
  font-weight: bold;
  font-family: inherit;
  font-size: 20px;
}

.login-button,
.add-button {
  background-color: white;
  border-color: black;
}

.register-button,
.myProfile-button {
  border-color: white;
  color: white;
}

.login-button:hover,
.register-button:hover,
.add-button:hover,
.myProfile-button:hover {
  font-size: 17px;
  cursor: pointer;
}

h4 {
  background-color: aliceblue;
  height: 80px;
  width: auto;
  padding: 15px;
  line-height: 80px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border-radius: 25px;
  text-align: center;
  font-size: 45px;
  margin-bottom: 20px;
}

#login-div,
#register-div {
  /* background-color: aliceblue;*/
  /*border-radius: 25px;*/
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  color: rgb(36, 36, 36);
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.25);*/
  margin: 20px;
}

#newwriting-div {
  /*background-color: aliceblue;*/
  /*border-radius: 25px;*/
  width: 300px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  color: rgb(36, 36, 36);
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.25);*/
  margin: 35px;
}

#submit-button {
  height: 35px;
  border-radius: 25px;
  background-color: white;
  font-weight: bold;
  color: rgb(6, 6, 6);
  margin-bottom: 25px;
}

.input-container {
  position: relative;
  width: auto;
  margin: 50px;
  justify-content: center;
}

#name,
#stage-name,
#password,
#password-again,
#email,
#nw-title,
#select-category,
#texttoupload {
  width: 60%;
  height: 40px;
  border-radius: 25px;
  margin: 10px;
  /* hely a hibaüzenetnek */
}

#submit {
  width: 17%;
  height: 30px;
  border-radius: 25px;
  color: white;
  background-color: black;
  margin: 10px;

  display: block;
  margin: 0;
}

.error {
  position: relative;
  bottom: -30px;
  text-align: center;

  font-size: 15px;
  color: red;
  font-weight: lighter;
  background-color: none; /* hogy olvasható legyen a border felett */

  pointer-events: none;
}

#login-button,
#register-button {
  height: 35px;
  border-radius: 25px;
  background-color: white;
  font-weight: bold;
  color: rgb(6, 6, 6);
  margin-bottom: 25px;
}

#login-button-container,
#register-button-container {
  display: flex;
  justify-content: center;
}

#side-menu {
  position: fixed;
  top: 0;
  left: -250px; /* elrejtve */
  width: 250px;
  height: 100%;
  background-color: #f0f8ff;
  color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 1000;

  display: flex;
  flex-direction: column;
}

#side-menu a {
  display: block;
  padding: 15px 20px;
  font-size: 18px;
  width: 209px;
  color: #333;
  text-decoration: none;
}

.menu-bottom {
  margin-bottom: 50px;
  margin-top: auto;
  padding: 15px 20px;
}

#side-menu a:hover {
  background-color: #e0eefc;
}

/* amikor aktív */
#side-menu.active {
  left: 0;
}

.menu-icon {
  cursor: pointer;
  font-size: 28px;
  user-select: none;
}

.actual-page {
  background-color: #ffffff;
  font-weight: bold;
}

.categories {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex-wrap: wrap;
  margin-top: 70px;
}

.category-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  font-size: 14px;
}

.category-btn.active {
  background-color: black;
  color: white;
  border-color: black;
}

/* PROFILKÉP */
.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #fff;
  transition: all 0.25s ease;
}

.profile-pic:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.edit-bio {
  cursor: pointer;
}

/* FELTÖLTÉS + ELŐFIZETÉS */
.upload-button,
.subscribe-button {
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  margin-right: 10px;
  border-radius: 12px;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
}

.upload-button {
  background-color: rgb(253, 165, 0);
  color: #000;
}

.upload-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(253, 165, 0, 0.4);
}

.subscribe-button {
  background-color: #6c63ff;
  color: #fff;
  font-size: 14px;
  padding: 8px 14px;
}

.subscribe-button:hover {
  background-color: #564fe0;
  transform: translateY(-2px);
}

.book-page {
  margin-top: 50px;
  text-align: center;
}

.book-page {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

/* KÉT OSZLOPOS LAYOUT */
.book-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* SZÖVEG BLOKK */
.book-content {
  text-align: left;
}

.book-text {
  font-size: 18px;
  line-height: 1.8;
  color: #222;
}

.book-text p {
  margin-bottom: 1.2em;
}

/* AKCIÓK */
.book-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.action-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background-color: #f5f5f5;
  border-color: #bbb;
}

/* KAPCSOLÓDÓ ALKOTÁSOK */
.related-works {
  background-color: #fafafa;
  border-left: 3px solid rgb(253, 165, 0);
  padding: 20px;
  height: fit-content;
}

.related-works h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
}

.related-works ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-works li {
  margin-bottom: 15px;
}

.related-works strong {
  font-size: 15px;
}

.related-works span {
  font-size: 13px;
  color: #666;
}

/* RESZPONZÍV */
@media (max-width: 900px) {
  .book-layout {
    grid-template-columns: 1fr;
  }

  .related-works {
    border-left: none;
    border-top: 3px solid rgb(253, 165, 0);
  }
}

/* admin-panel gombok */
.admin-panel {
  background-color: #fff3e0;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.admin-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fda500;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.admin-btn:hover {
  background-color: #e59400;
  transform: translateY(-2px);
}
